package com.delaphone.fadmin.action;

import com.delaphone.flocash.web.bean.SelectList;
import java.util.ArrayList;

/**
 *
 * @author dongtv
 */
public class TransactionHistoryAction extends CoreAction {

    /**
     * just return to jsp page
     * @return 
     */
    private String email;
    private String fromDate;
    private String toDate;
    private String transType;
    private ArrayList<SelectList> transTypeList;
    private int pageNumber;
    private int pageSize;
    @Override
    public String execute() {
        return SUCCESS;
    }
    // <editor-fold defaultstate="collapsed" desc="set and get method">

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFromDate() {
        return fromDate;
    }

    public void setFromDate(String fromDate) {
        this.fromDate = fromDate;
    }

    public String getToDate() {
        return toDate;
    }

    public void setToDate(String toDate) {
        this.toDate = toDate;
    }

    public String getTransType() {
        return transType;
    }

    public void setTransType(String transType) {
        this.transType = transType;
    }

    public ArrayList<SelectList> getTransTypeList() {
        transTypeList=new ArrayList<SelectList>();
        transTypeList.add(new SelectList("payment_from","Payment From"));
        transTypeList.add(new SelectList("payment_to","Payment To"));
        transTypeList.add(new SelectList("deposit","Deposit"));
        transTypeList.add(new SelectList("withdrawal","Withdrawal"));
        transTypeList.add(new SelectList("charge","Charge"));
        transTypeList.add(new SelectList("purchase","Purchase"));
        transTypeList.add(new SelectList("refund","Refund"));
        transTypeList.add(new SelectList("sale","Sale"));
       
        return transTypeList;
    }

    public void setTransTypeList(ArrayList<SelectList> transTypeList) {
        this.transTypeList = transTypeList;
    }
    // </editor-fold>
}
